package com.generic.mybatis.dal.dao.annotation;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

@Target({FIELD})
@Retention(RUNTIME)
public @interface Join {

    enum JoinType {Inner, Left, Right}

    JoinType type() default JoinType.Left;

    String field();

    String joinField() default "id";

    String[] includeFields() default {};

}